www.gusucode.com > WSTMall PHP网店系统 v1.6.0PHP源码程序 > WSTMall PHP网店系统 v1.6.0/wstmall_v1.6.0_160506/wstmall_v1.6.0_160506/Apps/Home/Action/AreasAction.class.php
<?php namespace Home\Action; /** * ============================================================================ * WSTMall开源商城 * 官网地址:http://www.wstmall.com * 联系QQ:707563272 * ============================================================================ * 区域控制器 */ class AreasAction extends BaseAction{ /** * 列表查询 */ public function queryByList(){ $m = D('Home/Areas'); $list = $m->queryByList((int)I('parentId')); $rs = array(); $rs['status'] = 1; $rs['list'] = $list; $this->ajaxReturn($rs); } /** * 列表查询[带社区] */ public function getAreaAndCommunitysByList(){ $m = D('Home/Areas'); $areaId = (int)I('areaId'); $list = $m->queryAreaAndCommunitysByList($areaId); $rs = array(); $rs['status'] = 1; $rs['list'] = $list; $this->ajaxReturn($rs); } /** * 通过省份获取城市列表 */ public function getCityListByProvince(){ $provinceId = (int)I('provinceId'); $m = D('Home/Areas'); $cityList = $m->getCityListByProvince($provinceId); $this->ajaxReturn($cityList); } }; ?>